package com.anan;

import java.awt.*;

/**
 * @Author: Painter
 * @project_name: aircraft-war
 * @system_login: sunshine
 * @time: 2023/11/520:18
 */


public class Supply {
    public int x;  // 坐标x
    public int y;  // 坐标y

    public Image image;  // 补给图片

    public int type;  // 补给类型 0 超级子弹， 1 玩家生命， 2 全屏炸弹

    public Supply(Image image,int type) {
        this.type = type;
        this.image = image;
        this.x = random.randint(0,600-60);  // 初始随机x坐标
        this.y = random.randint(-500,0);  // 初始随机y坐标
    }
    public void move(){  // 移动补给
        this.y += 3;
    }
}
